<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddIntegralGoodsSnapshotIdToItemOrderTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('order_item', function (Blueprint $table) {
            $table->dropColumn('integral');
            $table->integer('goods_snapshot_id')->nullable()->comment('快照id')->after('type');

        });

        Schema::table('express', function (Blueprint $table) {
            $table->dropColumn('fee');


        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
